﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model.Sec
{
    /// <summary>
    /// 登录状态类，User类中的登录函数返回此类的一个对象
    /// </summary>
    public class LogonStatus
    {
        public LogonStatus()
        {
        }        
        #region LogonStatus的属性
        private int _Status = 0;
        private string _Message = "";

        /// <summary>
        /// 只读，登录状态,有效取值是SEC_DICTIONARY表里与登录相关的记录的CODEISN字段的值
        /// </summary>
        public int Status
        {
            get { return _Status; }
            set { this._Status = value; }
        }
        /// <summary>
        /// 只读，登录成功、失败的信息
        /// </summary>
        public string Message
        {
            get { return _Message; }
            set { this._Message = value; }
        }
        private User _LogonUser;
        /// <summary>
        /// 登录用户
        /// </summary>
        public User LogonUser
        {
            get { return _LogonUser; }
            set { this._LogonUser = value; }
        }
        #endregion
    }
}
